/*
 * FNISVGEditor - JavaScript - based editor for SVG graphics 
 * Copyright (C) 2008 - 2009 Antti Leppä / Foyt
 * http://www.foyt.fi
 * 
 * License: 
 * 
 * Licensed under GNU Lesser General Public License Version 2.1 or later (the "LGPL") 
 * http://www.gnu.org/licenses/lgpl.html
 */
FNISVGEditorStausBar = Class.create(FNIPanel, /**
 * @scope FNISVGEditorStausBar.prototype
 */
{
  /**
   * Constructor
   *
   * @param {Object} $super superclass
   */
  initialize: function($super){
    $super({});
	
	this._groups = new Hash();
	
    this.domNode.addClassName('fniSVGEditorStatusBar');
  },
  getGroup: function (name) {
  	return this._groups.get(name);
  },
  registerGroup: function(name, type){
    switch (type) {
      case 'freetext':
        groupInstance = new FNISVGEditorStatusBarFreeTextGroup();
      break;
      case 'container':
        groupInstance = new FNISVGEditorStatusBarContainerGroup();
      break;
    }
	
	if (groupInstance) {
	  this._groups.set(name, groupInstance);
	  this.addGUIComponent(groupInstance);
	}
  }
});
